package com.itcast.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;

import java.rmi.server.RemoteStub;
import java.util.ArrayList;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 管理员编号
     */
    @TableField("adminNumber")
    @Excel(name = "管理员编号",width = 30)
    private String adminNumber;

    /**
     * 管理员昵称
     */
    @TableField("adminName")
    @Excel(name = "管理员昵称",width = 30)
    private String adminName;

    /**
     * 管理员头像
     */
    @TableField("imgUrl")
    private String imgUrl;

    /**
     * 管理员标识
     */
    @Excel(name = "管理员标识",width = 30)
    private Boolean state;

    /**
     * 创建时间
     */
    @TableField("createDate")
    @JsonFormat(pattern="yyyy-MM-dd")
    @Excel(name = "创建时间",width = 30,format = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /**
     * 修改时间
     */
    @TableField("updateTime")
    @JsonFormat(pattern="yyyy-MM-dd")
    @Excel(name = "更新时间",width = 30,format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 盐
     */

    private String salt;

    private String password;



}
